package com.inspire.springboot.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * @author ：inspire
 * @date ：Created in 2022/10/9 14:59
 * @description：
 * @modified By：inspire
 * @version:
 */
public class Goods {
    public int id;
    public String goodsName;
    public int stock;
//    @JsonIgnore
    public String goodsDescribe;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getGoodsDescribe() {
        return goodsDescribe;
    }

    public void setGoodsDescribe(String goodsDescribe) {
        this.goodsDescribe = goodsDescribe;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", stock=" + stock +
                ", goodsDescribe='" + goodsDescribe + '\'' +
                '}';
    }

    public void fun01(){
        int a=1;
        if(a==1){
            System.out.println("--------");
        }
    }

    public void fun02(int a){
        if(a==1){
            System.out.println("--------");
        }
    }
}
